package com.rw.engine.ip.interceptor;

import com.rw.engine.CommonFilterRule;
import com.rw.engine.ip.anno.IpLimit;

import javax.servlet.http.HttpServletRequest;

/**
 * IP拦截器切片
 */
public interface IpFilterRule extends CommonFilterRule<IpLimit> {
    /**
     * @param ipLimit ipLimit为方法上的注解信息
     * @param request 请求
     *                返回值代表是否放行
     */
    @Override
    void filter(IpLimit ipLimit, HttpServletRequest request);
}
